package com.invokestatic.shooter.Entity;

import com.invokestatic.shooter.Input;
import com.invokestatic.shooter.Level.Camera;
import com.invokestatic.shooter.Screens.Screen;

public class Bullet extends Entity {

	public double xa = 0, ya = 0;
	public double xp = 0, yp = 0;
	public int tick = 0;
	
	public Bullet(double xPos, double yPos, double xAccel, double yAccel) {
		xp = xPos;
		yp = yPos;
		xa = xAccel;
		ya = yAccel;
	}

	@Override
	public void render(Screen screen, Camera camera) {
		System.out.println(xp + " " + yp);
		screen.drawStringRoatatedCentered(""+tick % 2, (int)xp, (int)yp, tick);
	}

	@Override
	public void tick(Input input) {
		tick++;
		xp += (32 * xa);
		yp += (32 * ya);
	}
	
}
